package cn.csc.module.product.controller.admin.skuattrjson.vo;

import cn.csc.module.product.controller.admin.spu.vo.SkuAttrCreateReqV2VO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigInteger;
import java.util.List;

/**
 * @author 云隐
 * @date 2025/3/12
 **/
@Data
public class SkuAttrJsonSimpleReqVO {
    @NotNull(message = "商品ID不能为空")
    private BigInteger spuId;
    @NotEmpty(message = "sku规格属性不能为空")
    @Size(min = 1, max = 30, message = "至少需要一条规格")
    private List<SkuAttrCreateReqV2VO> attrJson;
}
